<%--
  Created by IntelliJ IDEA.
  User: wzm
  Date: 2023/6/27
  Time: 11:11
  To change this template use File | Settings | File Templates.
--%>

<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<html>
<head>
	<title>Title</title>
</head>
<body>
<h1>1页面</h1>
<%
  //往四个域对象中存储数据
	pageContext.setAttribute("key", "pageContext");
	request.setAttribute("key", "request");
	session.setAttribute("key", "session");
	application.setAttribute("key", "application");
%>
pageContext的值：<%=pageContext.getAttribute("key")%>
request的值：<%=request.getAttribute("key")%>
session的值：<%=session.getAttribute("key")%>
application的值：<%=application.getAttribute("key")%>

<%
request.getRequestDispatcher("/test3.jsp").forward(request,response);
%>


</body>
</html>
